package com.oren.system.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: wsw
 * @Description: 树形结构的数据格式
 * @Date: Create on 2018/7/29 15:19
 */
public class TreeEntity implements Serializable {

    private Integer id;

    private Integer parentId;

    private String name;

    private String iconImg;

    //是否选中
    private boolean check;

    //是否展开
    private boolean spread;

    private List<TreeEntity> childList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIconImg() {
        return iconImg;
    }

    public void setIconImg(String iconImg) {
        this.iconImg = iconImg;
    }

    public List<TreeEntity> getChildList() {
        return childList;
    }

    public void setChildList(List<TreeEntity> childList) {
        this.childList = childList;
    }

    public boolean isCheck() {
        return check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }
}
